<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp"%>
<%@ taglib prefix="sitemesh" uri="http://www.opensymphony.com/sitemesh/decorator" %>
<!DOCTYPE html>
<html>
<head>
	<title><sitemesh:title default="欢迎光临"/> - ${site.title} - Powered By JeeSite</title>
	<%@include file="/WEB-INF/views/modules/cms/front/include/head.jsp" %>
	<sitemesh:head/>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
	<div class="container">
		<div class="navbar-header">
			<button data-target=".navbar-collapse" data-toggle="collapse" type="button" class="navbar-toggle collapsed">
				<span class="sr-only">Toggle navigation</span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<a href="${ctx}/index-1${fns:getUrlSuffix()}" class="navbar-brand hidden-sm">${site.id eq '1'?'首　 页':'返回主站'}</a>
		</div>
		<div role="navigation" class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
				<c:forEach items="${fnc:getMainNavList(site.id)}" var="category" varStatus="status"><c:if test="${status.index lt 6}">
					<c:set var="menuCategoryId" value=",${category.id},"/>
					<li class="${requestScope.category.id eq category.id||fn:indexOf(requestScope.category.parentIds,menuCategoryId) ge 1?'active':''}"><a href="${category.url}" target="${category.target}"><span>${category.name}</span></a></li>
				</c:if></c:forEach>
			</ul>
			<form class="navbar-form navbar-left" role="search" action="${ctx}/search" method="get">
				<div class="form-group">
					<input type="text" name="q" maxlength="20" class="form-control" placeholder="请输入关键字" value="${q}">
				</div>
				<button type="submit" class="btn btn-default">搜索</button>
			</form>
			<ul class="nav navbar-nav navbar-right hidden-sm">
				<li id="siteSwitch" class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">站点 <span class="caret"></span></a>
					<ul class="dropdown-menu">
						<c:forEach items="${fnc:getSiteList()}" var="site"><li><a href="#" onclick="location='${ctx}/index-${site.id}${urlSuffix}'">${site.title}</a></li></c:forEach>
					</ul>
				</li>
				<li id="themeSwitch" class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">主题切换 <span class="caret"></span></a>
					<ul class="dropdown-menu"><c:forEach items="${fns:getDictList('theme')}" var="dict"><li><a href="#" onclick="location='${pageContext.request.contextPath}/theme/${dict.value}?url='+location.href">${dict.label}</a></li></c:forEach></ul>
					<!--[if lte IE 6]><script type="text/javascript">$('#themeSwitch').hide();</script><![endif]-->
				</li>
			</ul>
		</div>
	</div>
</div>
	<div class="container">
		<div class="content">
			<sitemesh:body/>
		</div>
    </div> <!-- /container -->
<footer class="footer ">
	<div class="container">
		<div class="row footer-top">
			<div class="col-sm-6 col-lg-6">
				<h4><img src="http://static.bootcss.com/www/assets/img/logo.png"></h4>
				<div class="footer_nav"><a href="${ctx}/guestbook" target="_blank">公共留言</a> | <a href="${ctx}/search" target="_blank">全站搜索</a> | <a href="${ctx}/map-${site.id}${fns:getUrlSuffix()}" target="_blank">站点地图</a> | <a href="mailto:thinkgem@163.com">技术支持</a> | <a href="${pageContext.request.contextPath}${fns:getAdminPath()}" target="_blank">后台管理</a></div>
				<div class="pull-right">${fns:getDate('yyyy年MM月dd日 E')}</div><div class="copyright">${site.copyright}</div>
			</div>
			<div class="col-sm-6  col-lg-5 col-lg-offset-1">
				<div class="row about">
					<div class="col-xs-3">
						<h4>关于</h4>
						<ul class="list-unstyled">
							<li><a href="/about/">关于我们</a></li>
							<li><a href="/ad/">广告合作</a></li>
							<li><a href="/links/">友情链接</a></li>
							<li><a href="/hr/">招聘</a></li>
						</ul>
					</div>
					<div class="col-xs-3">
						<h4>联系方式</h4>
						<ul class="list-unstyled">
							<li><a target="_blank" title="#" href="#">#</a></li>
							<li><a href="#">#</a></li>
						</ul>
					</div>
					<div class="col-xs-3">
						<h4>旗下网站</h4>
						<ul class="list-unstyled">
							<li><a target="_blank" href="#">#</a></li>
							<li><a target="_blank" href="#">#</a></li>
						</ul>
					</div>
					<div class="col-xs-3">
						<h4>赞助商</h4>
						<ul class="list-unstyled">
							<li><a target="_blank" href="#">#</a></li>
							<li><a target="_blank" href="#">#</a></li>
						</ul>
					</div>
				</div>
			</div>
		</div>
		<hr>
		<div class="row footer-bottom">
			<ul class="list-inline text-center">
				<li><a target="_blank" href="http://www.miibeian.gov.cn/">ICP备XXX号</a></li><li>公安备案XXXXX</li>
			</ul>
		</div>
	</div>
</footer>
</body>
<script>
	(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
				(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
			m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
	})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

	ga('create', 'UA-80243990-1', 'auto');
	ga('send', 'pageview');
</script>
</html>